<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
<style>
  .box{
    width: 200px;
    height: 200px;
    background-color: rgb(99, 81, 91);
  }
</style>
</head>
<body>

  <div id='app'>
    <!-- {{message}} -->
    <button @click="isShow = !isShow">{{isShow?'显示':'消失'}}</button>
    <div class="box" v-show="isShow"></div>
    <input type="text" :value="inp">
    <div class="box">
      {{inp}}
    </div>

  </div>

<script src='https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js'></script>
<script>
  const app = new Vue({
    el: '#app'
    ,data:{
      message: 'Hello Vue'
      ,isShow: true
      ,inp: ''
    }
  })
</script>
</body>
</html>